<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page session="false" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>房间体系_明星推荐页面</title>
<link type="text/css" rel="stylesheet" href="css/style.css" />
<link type="text/css" rel="stylesheet" href="/css/removefocus.css" />
<script type="text/javascript" src="/js/jquery.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/jquery-1.7.1.min.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/json2.js" charset="utf-8"></script>
 <script type="text/javascript" language="javascript" src="<c:url value="/js/room/popWin.js"/>"></script>
</head>
<body>
	<div class="fjStar">
   	  <h2><span>明星推荐</span><a  href="/room!index.jspa?roomid=${starInfo[0][0].room_id}">返回主页>></a></h2>
      <div class="bd">
          <div class="tjDiv" style="font-size:11px;">房间主页明星推荐:<label for="tj1_0"> <input type="radio" name="RadioGroup1" value="1" id="tj1_0" <c:if test="${sorttype==1 }">checked="checked"</c:if> />手动推荐</label><label for="tj1_1"> <input type="radio" name="RadioGroup1" value="0" id="tj1_1" <c:if test="${sorttype==0 }">checked="checked"</c:if>/>自动推荐</label>(手动为列表前4位，自动为系统每日随机从列表中选4位)</div>
          <div class="rank">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <th width="13%">序号</th>
                    <th width="20%">ID</th>
                    <th width="27%">名称</th>
                    <th width="15%">明星等级</th>
                    <th width="12%">头像</th>
                    <th width="13%">推荐排序</th>
                  </tr>
                  <c:forEach items="${starInfo[0]}" var="his" varStatus="vs">
                  <tr>
                    <td>${vs.count }</td>
                    <td>${his.user_id }</td>
                    <td><a href="${his.url}" target="_blank">${his.nickname}</a></td>
                    <td>${his.level }</td>
                    <td><a href="${his.url}" target="_blank"><img src="http://zone1.ggimg.cn/custom/portrait/${his.user_id }_small.jpg" name="infocard${his.user_id}" width="32" height="32" title="" /></a></td>
                    <td class="px">
                    	<a href="javascript:void(0);" onclick="showPopWin(this,'sortDiv',initSortDiv(${his.id}),'center');return false;">排序</a>
                    </td>
                  </tr>
                  </c:forEach>
                </table>
            </div>
            
            <div class="pages">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                  	<!-- 
                    <td>总共107条记录，共14页，当前为第1页，</td>
                    <td><input type="text" /></td>
                    <td><a href="" class="tz"><img src="images/szBtn.gif" /></a></td>
                    <td><input type="text" /></td>
                    <td><a href="" class="tz"><img src="images/tzBtn.gif" /></a></td>
                     -->
                    <td aligh="right">        
			           	<input type="hidden" id="jsroomid" value='${starInfo[0][0].room_id}'/>         
			           	<input type="hidden" id="pageJson" value='${starInfo[1]}'/>
			            <input type="hidden" id="pageUrl" value="/room!toAddStarPage.jspa?roomid=${starInfo[0][0].room_id}"/>
			            <input type="hidden" id="pageClass" value="hover"/>
                    	<script type="text/javascript" src="/js/room/page.js" charset="utf-8"></script>
                    </td>
                  </tr>
                </table>
			</div>
            <div class="cl"></div>
       </div> 
  </div>
  <div class="bomb" id="sortDiv" style="display:none;z-index:99;position:absolute;">
   	<div class="bombBox2">
   		<h4>明星排序<a class="close" href="#"></a></h4>
       	<div class="bd">
           	<p>位置：<input type="hidden" style="width:40px;" id="sortNum" value="1"/>
           		<select id="selectSortNum">
           			<option value="1" selected="selected">1</option>
           			<option value="2">2</option>
           			<option value="3">3</option>
           			<option value="4">4</option>
           		</select>
           	请选择正确的位置序号</p>
               <div><a class="but1" href="javascript:void(0);" id="subSort">确定</a><a class="but1" id="cancelSort" href="javascript:void(0);">取消</a></div>
           </div>
       </div>
   </div>
</body>
<script type="text/javascript" language="javascript" src="/js/room/starUtil.js"></script>
<script type="text/javascript" language="javascript" src="/js/infocard.js"></script>
</html>